package com.github.catvod.spider;

import android.content.Context;
import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.jP;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Drama extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f19short = {1667, 1671, 1668, 1688, 1688, 1692, 1731, 1759, 1730, 1757, 1758, 1730, 1757, 2350, 2344, 2366, 2345, 2422, 2362, 2364, 2366, 2357, 2351, 2595, 2563, 3107, 3193, 3189, 3193, 1195, 1263, 1270, 1258, 1259, 795, 798, 772, 771, 718, 735, 729, 731, 717, 727, 708, 731, 643, 2152, 2106, 2103, 2110, 2091, 2055, 2090, 2175, 2163, 3198, 3112, 3129, 3135, 3133, 3173, 323, 269, 284, 261, 323, 265, 276, 323, 282, 351, 323, 287, 265, 271, 281, 286, 261, 280, 277, 323, 264, 286, 269, 257, 269, 323, 256, 261, 287, 280, 339, 285, 281, 265, 286, 277, 337, 1856, 1861, 1872, 1861, 1450, 1459, 1464, 1411, 1461, 1464, 316, 305, 3091, 3082, 3073, 3130, 3083, 3076, 3080, 3072, 1900, 1891, 1903, 1895, 1687, 1678, 1669, 1726, 1681, 1672, 1666, 3047, 3051, 3058, 3041, 3062, 3021, 3049, 3045, 3043, 3041, 810, 827, 814, 818, 772, 787, 795, 791, 772, 797, 3165, 3142, 3167, 3167, 3135, 3110, 3117, 3094, 3131, 3116, 3108, 3112, 3131, 3106, 3130, 1523, 1506, 1508, 1510, 2552, 2537, 2543, 2541, 2539, 2535, 2557, 2534, 2556, 2473, 2476, 2472, 2476, 2481, 2224, 2219, 2224, 2213, 2216, 2367, 2367, 2367, 2014, 1989, 2012, 2012, 2706, 2691, 2710, 2698, 3323, 3304, 3327, 3323, 858, 863, 842, 863, 1586, 1660, 1645, 1652, 1586, 1643, 1582, 1586, 1657, 1647, 1660, 1648, 1660, 1586, 1658, 1656, 1641, 1625, 1656, 1641, 1660, 1652, 1649, 1570, 1652, 1657, 1568, 1481, 1488, 1499, 1504, 1494, 1499, 2761, 2756, 3289, 3264, 3275, 3312, 3265, 3278, 3266, 3274, 3112, 3111, 3115, 3107, 270, 279, 284, 295, 264, 273, 283, 3117, 3105, 3128, 3115, 3132, 3079, 3107, 3119, 3113, 3115, 1354, 1351, 1358, 1371, 1377, 1360, 1375, 1363, 1371, 1511, 1512, 1509, 1534, 1534, 1691, 1666, 1673, 1714, 1684, 1672, 1676, 1695, 1168, 1164, 1160, 1179, 3283, 3274, 3265, 3322, 3268, 3287, 3264, 3268, 3071, 3048, 3040, 3052, 3071, 3046, 2662, 2687, 2676, 2639, 2658, 2677, 2685, 2673, 2658, 2683, 2659, 723, 714, 705, 762, 708, 710, 721, 714, 727, 528, 530, 517, 542, 515, 2494, 2471, 2476, 2455, 2476, 2465, 2490, 2477, 2475, 2492, 2471, 2490, 261, 264, 275, 260, 258, 277, 270, 275, 2012, 2011, 1985, 1991, 2010, 2098, 2091, 2080, 2075, 2087, 2091, 2090, 2096, 2081, 2090, 2096, 871, 888, 885, 884, 894, 866, 2057, 1253, 1273, 1251, 1252, 1269, 1267, 1237, 1272, 416, 444, 422, 417, 432, 438, 646, 667, 646, 670, 663, 701, 670, 662, 433, 3090, 2146, 2171, 2160, 2123, 2148, 2168, 2165, 2157, 2123, 2162, 2150, 2171, 2169, 1908, 1901, 1894, 1885, 1906, 1902, 1891, 1915, 1885, 1911, 1904, 1902, 2439, 2434, 2456, 2463, 1669, 1739, 1754, 1731, 1669, 1756, 1689, 1669, 1742, 1752, 1739, 1735, 1739, 1669, 1741, 1743, 1758, 1769, 1739, 1758, 1743, 1741, 1733, 1752, 1747, 1685, 1733, 1752, 1742, 1743, 1752, 1768, 1747, 1687, 1758, 1747, 1754, 1743, 1781, 1731, 1742, 2292, 2289, 2276, 2289, 2384, 2399, 2387, 2395, 2179, 2190, 1935, 1922, 1931, 1950, 1956, 1938, 1951, 3125, 3128, 3121, 3108, 3102, 3119, 3104, 3116, 3108, 2087, 2088, 2085, 2103, 2103, 2813, 2739, 2722, 2747, 2813, 2743, 2730, 2813, 2724, 2785, 2813, 2721, 2743, 2737, 2727, 2720, 2747, 2726, 2731, 2813, 2726, 2739, 2741, 2813, 2750, 2747, 2721, 2726, 709, 704, 725, 704, 1833, 1855, 1849, 1838, 1843, 1845, 1844, 1833, 1937, 1928, 1923, 1963, 1934, 1940, 1939, 2134, 2139, 2897, 2910, 2898, 2906, 2243, 2255, 2262, 2245, 2258, 2281, 2253, 2241, 2247, 2245, 1636, 1653, 1632, 1660, 1327, 1336, 1328, 1340, 1327, 1334, 268, 277, 286, 293, 275, 286, 1518, 1527, 1532, 1479, 1526, 1529, 1525, 1533, 623, 630, 637, 582, 617, 624, 634, 526, 535, 540, 551, 522, 541, 533, 537, 522, 531, 523, 2451, 2454, 2444, 2443, 3167, 3199, 844, 853, 862, 874, 854, 859, 835, 892, 840, 853, 855, 775, 1794, 1876, 1864, 1861, 1885, 1905, 1878, 1864, 1817, 559, 609, 624, 617, 559, 613, 632, 559, 630, 563, 559, 627, 613, 611, 629, 626, 617, 628, 633, 559, 630, 617, 612, 613, 623, 597, 627, 609, 610, 620, 613, 597, 626, 620, 575, 625, 629, 613, 626, 633, 573, 617, 620, 633, 620, 1330, 1333, 1323, 2715, 2695, 2698, 2706, 2750, 2713, 2695, 1580, 1597, 1582, 1583, 1593, 3099, 3102, 3076, 3075, 2541, 2556, 2554, 2552, 2542, 2548, 2535, 2552, 2464, 2479, 2476, 2491, 2541, 2556, 2554, 2552, 2464, 2476, 2491, 2542, 2552, 2556, 2543, 2558, 2549, 2518, 2552, 2532, 2542, 2464, 1800, 1862, 1879, 1870, 1800, 1858, 1887, 1800, 1873, 1812, 1800, 1876, 1858, 1860, 1874, 1877, 1870, 1875, 1886, 1800, 1859, 1877, 1862, 1866, 1862, 1800, 1867, 1870, 1876, 1875, 1816, 1878, 1874, 1858, 1877, 1886, 1818, 3084, 3081, 3100, 3081, 2898, 2891, 2880, 2939, 2893, 2880, 425, 420, 2538, 2547, 2552, 2499, 2546, 2557, 2545, 2553, 2084, 2091, 2087, 2095, 2846, 2823, 2828, 2871, 2840, 2817, 2827, 743, 747, 754, 737, 758, 717, 745, 741, 739, 737, 1010, 995, 1014, 1002, 1385, 1406, 1398, 1402, 1385, 1392, 2221, 2230, 2223, 2223, 3324, 3301, 3310, 3285, 3320, 3311, 3303, 3307, 3320, 3297, 3321};
    private String h = "";
    private String V0 = C0015.m47(f19short, 0, 13, 1772);
    private String j = "";
    private String q = "";
    private int I = 21;
    private String oC = "";

    public Drama() {
        int m32 = C0009.m32();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m32 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(C0006.m23("qaO1dWgl8EngIwRP"));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:18:0x0032, code lost:
    
        return r4;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.util.HashMap<java.lang.String, java.lang.String> V0() {
        /*
            r6 = this;
            r1 = 0
            java.lang.String r0 = "ۧ۠ۢ"
            r2 = r1
            r3 = r1
            r4 = r1
        L6:
            int r0 = com.github.catvod.parser.C0006.m20(r0)
            switch(r0) {
                case 56574: goto L32;
                case 1748769: goto L25;
                case 1748803: goto L1a;
                case 1755376: goto L20;
                case 1755497: goto L15;
                default: goto Ld;
            }
        Ld:
            java.util.HashMap r4 = new java.util.HashMap
            r4.<init>()
            java.lang.String r0 = "ۨ۠ۨ"
            goto L6
        L15:
            short[] r2 = com.github.catvod.spider.Drama.f19short
            java.lang.String r0 = "ۡۤۤ"
            goto L6
        L1a:
            r4.put(r1, r3)
            java.lang.String r0 = "ۨۦ"
            goto L6
        L20:
            java.lang.String r3 = r6.V0
            java.lang.String r0 = "ۨۤۥ"
            goto L6
        L25:
            r0 = 13
            r1 = 10
            r5 = 2395(0x95b, float:3.356E-42)
            java.lang.String r1 = com.github.catvod.parser.C0003.m9(r2, r0, r1, r5)
            java.lang.String r0 = "ۡۥۧ"
            goto L6
        L32:
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Drama.V0():java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:17:0x0056. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:3:0x0035. Please report as an issue. */
    private void h() {
        String[] split = new String(Base64.decode(this.oC.substring(1), 0)).split(C0017.m52(f19short, 23, 2, 2687));
        boolean endsWith = split[0].endsWith(C0011.m35(f19short, 25, 4, 3085));
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = !endsWith ? 1709 : 1678;
                case 204:
                    boolean endsWith2 = split[0].endsWith(C0006.m18(f19short, 29, 5, 1157));
                    int i2 = 1740;
                    while (true) {
                        i2 ^= 1757;
                        switch (i2) {
                            case 17:
                                i2 = endsWith2 ? 1833 : 1802;
                            case 54:
                            case 471:
                                this.h = split[0];
                                int i3 = 48767;
                                while (true) {
                                    i3 ^= 48784;
                                    switch (i3) {
                                        case 14:
                                            break;
                                        case 239:
                                            i3 = 48798;
                                            break;
                                    }
                                }
                                break;
                            case 500:
                                int i4 = 1864;
                                while (true) {
                                    i4 ^= 1881;
                                    switch (i4) {
                                        case 17:
                                            i4 = 48674;
                                            break;
                                        case 47483:
                                            break;
                                    }
                                }
                                break;
                        }
                    }
                    break;
                case 239:
                    break;
            }
        }
        this.h = fP.oq(split[0], null);
        this.j = split[1];
        this.q = split[2];
        this.I = Integer.parseInt(split[3]);
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:36:0x00ed. Please report as an issue. */
    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        String m17 = C0005.m17(f19short, 34, 4, 887);
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            int i2 = this.I;
            int parseInt = Integer.parseInt(str2);
            int i3 = 1740;
            while (true) {
                i3 ^= 1757;
                switch (i3) {
                    case 17:
                        i3 = parseInt == 0 ? 1833 : 1802;
                    case 54:
                    case 471:
                        break;
                    case 500:
                        parseInt = 1;
                        break;
                }
            }
            String str3 = this.h + C0000.m1(f19short, 62, 37, 364) + URLEncoder.encode(jP.j(jP.j(C0004.m12(f19short, 38, 9, 702) + i2 + C0012.m37(f19short, 47, 9, 2126) + str + C0018.m56(f19short, 56, 6, 3160) + str2, this.q), this.j));
            JSONArray jSONArray = new JSONArray();
            JSONArray jSONArray2 = new JSONObject(jP.V0(jP.V0(new JSONObject(fP.oq(str3, V0())).getString(C0011.m35(f19short, 99, 4, 1828)), this.j), this.q)).getJSONArray(m17);
            int i4 = 0;
            while (true) {
                int length = jSONArray2.length();
                int i5 = 1864;
                while (true) {
                    i5 ^= 1881;
                    switch (i5) {
                        case 17:
                            i5 = i4 < length ? 48736 : 48705;
                        case 47384:
                            break;
                        case 47417:
                            JSONObject jSONObject = jSONArray2.getJSONObject(i4);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0018.m56(f19short, 103, 6, 1500), jSONObject.getString(C0013.m41(f19short, 109, 2, 341)));
                            jSONObject2.put(C0003.m9(f19short, 111, 8, 3173), jSONObject.getString(C0012.m37(f19short, 119, 4, 1794)));
                            jSONObject2.put(C0000.m1(f19short, 123, 7, 1761), jSONObject.getJSONObject(C0017.m52(f19short, 130, 10, 2948)).getString(C0013.m41(f19short, 140, 4, 858)));
                            String optString = jSONObject.optString(C0009.m30(f19short, 144, 6, 886));
                            boolean equals = optString.equals(C0015.m47(f19short, 150, 4, 3123));
                            int i6 = 48767;
                            while (true) {
                                i6 ^= 48784;
                                switch (i6) {
                                    case 14:
                                    case 45:
                                        break;
                                    case 76:
                                        optString = "";
                                        break;
                                    case 239:
                                        i6 = equals ? 48860 : 48829;
                                }
                            }
                            jSONObject2.put(C0012.m37(f19short, 154, 11, 3145), optString);
                            jSONArray.put(jSONObject2);
                            int i7 = i4 + 1;
                            int i8 = 48891;
                            while (true) {
                                i8 ^= 48908;
                                switch (i8) {
                                    case 22:
                                        break;
                                    case 503:
                                        i8 = 48922;
                                        break;
                                }
                            }
                            i4 = i7;
                            break;
                        case 47483:
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0009.m30(f19short, 165, 4, 1411), parseInt);
                    int length2 = jSONArray.length();
                    int i9 = 49666;
                    while (true) {
                        i9 ^= 49683;
                        switch (i9) {
                            case 17:
                                if (length2 != i2) {
                                    break;
                                } else {
                                    i9 = 49759;
                                }
                            case 50:
                                break;
                            case 76:
                                parseInt++;
                                break;
                            case 83:
                                break;
                            default:
                                continue;
                        }
                        i9 = 49728;
                    }
                    jSONObject3.put(C0000.m1(f19short, 169, 9, 2440), parseInt);
                    jSONObject3.put(C0006.m18(f19short, 178, 5, 2501), i2);
                    jSONObject3.put(C0009.m30(f19short, 183, 5, 2244), Integer.MAX_VALUE);
                    jSONObject3.put(m17, jSONArray);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:191:0x03d2, code lost:
    
        r1 = 51712;
     */
    /* JADX WARN: Code restructure failed: missing block: B:192:0x03d5, code lost:
    
        r1 = r1 ^ 51729;
     */
    /* JADX WARN: Code restructure failed: missing block: B:193:0x03d9, code lost:
    
        switch(r1) {
            case 14: goto L201;
            case 15: goto L204;
            case 16: goto L204;
            case 17: goto L202;
            default: goto L204;
        };
     */
    /* JADX WARN: Code restructure failed: missing block: B:195:0x03d1, code lost:
    
        throw r2;
     */
    /* JADX WARN: Code restructure failed: missing block: B:197:0x03dd, code lost:
    
        r1 = 51743;
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x00c5, code lost:
    
        r5 = r1;
     */
    /* JADX WARN: Failed to find 'out' block for switch in B:44:0x018e. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:76:0x0281. Please report as an issue. */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String detailContent(java.util.List<java.lang.String> r20) {
        /*
            Method dump skipped, instructions count: 1182
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Drama.detailContent(java.util.List):java.lang.String");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:20:0x0061. Please report as an issue. */
    public String homeContent(boolean z) {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            JSONArray jSONArray = new JSONObject(fP.oq(this.h + C0000.m1(f19short, 432, 41, 1706), V0())).getJSONArray(C0001.m3(f19short, 473, 4, 2192));
            JSONArray jSONArray2 = new JSONArray();
            int i2 = 0;
            while (true) {
                int length = jSONArray.length();
                int i3 = 1740;
                while (true) {
                    i3 ^= 1757;
                    switch (i3) {
                        case 17:
                            i3 = i2 < length ? 1833 : 1802;
                        case 54:
                        case 471:
                            break;
                        case 500:
                            JSONObject jSONObject = jSONArray.getJSONObject(i2);
                            String string = jSONObject.getString(C0005.m17(f19short, 477, 4, 2366));
                            String string2 = jSONObject.getString(C0005.m17(f19short, 481, 2, 2282));
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0009.m30(f19short, 483, 7, 2043), string2);
                            jSONObject2.put(C0017.m52(f19short, 490, 9, 3137), string);
                            jSONArray2.put(jSONObject2);
                            i2++;
                            int i4 = 1864;
                            while (true) {
                                i4 ^= 1881;
                                switch (i4) {
                                    case 17:
                                        i4 = 48674;
                                        break;
                                    case 47483:
                                        break;
                                }
                            }
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0000.m1(f19short, 499, 5, 2116), jSONArray2);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:21:0x009b. Please report as an issue. */
    public String homeVideoContent() {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            JSONArray jSONArray = new JSONArray();
            JSONArray jSONArray2 = new JSONArray(jP.V0(jP.V0(new JSONObject(fP.oq(this.h + C0000.m1(f19short, 504, 28, 2770), V0())).getString(C0005.m17(f19short, 532, 4, 673)), this.j), this.q)).getJSONObject(0).getJSONArray(C0000.m1(f19short, 536, 8, 1882)).getJSONObject(1).getJSONArray(C0008.m27(f19short, 544, 7, 2023));
            int i2 = 0;
            while (true) {
                int length = jSONArray2.length();
                int i3 = 1740;
                while (true) {
                    i3 ^= 1757;
                    switch (i3) {
                        case 17:
                            i3 = i2 < length ? 1833 : 1802;
                        case 54:
                        case 471:
                            break;
                        case 500:
                            JSONObject jSONObject = jSONArray2.getJSONObject(i2);
                            String string = jSONObject.getString(C0012.m37(f19short, 551, 2, 2111));
                            String string2 = jSONObject.getString(C0008.m27(f19short, 553, 4, 2879));
                            String string3 = jSONObject.getJSONObject(C0004.m12(f19short, 557, 10, 2208)).getString(C0012.m37(f19short, 567, 4, 1556));
                            String string4 = jSONObject.getString(C0007.m26(f19short, 571, 6, 1373));
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0008.m27(f19short, 577, 6, 378), string);
                            jSONObject2.put(C0018.m56(f19short, 583, 8, 1432), string2);
                            jSONObject2.put(C0013.m41(f19short, 591, 7, 537), string3);
                            jSONObject2.put(C0006.m18(f19short, 598, 11, 632), string4);
                            jSONArray.put(jSONObject2);
                            int i4 = i2 + 1;
                            int i5 = 1864;
                            while (true) {
                                i5 ^= 1881;
                                switch (i5) {
                                    case 17:
                                        i5 = 48674;
                                        break;
                                    case 47483:
                                        break;
                                }
                            }
                            i2 = i4;
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(C0001.m3(f19short, 609, 4, 2559), jSONArray);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public void init(Context context, String str) {
        super.init(context);
        this.oC = str;
        int m0 = C0000.m0();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m0 >= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Float.valueOf(C0008.m29("DCm88RK2yotlAMhGw1")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    public String playerContent(String str, String str2, List<String> list) {
        try {
            String[] split = str2.split(C0008.m27(f19short, 613, 2, 3075));
            String j = jP.j(jP.j(C0007.m26(f19short, 615, 12, 826) + split[1] + C0018.m56(f19short, 627, 9, 1828) + URLEncoder.encode(split[0]), this.q), this.j);
            StringBuilder sb = new StringBuilder();
            sb.append(this.h);
            sb.append(C0001.m3(f19short, 636, 41, 512));
            sb.append(URLEncoder.encode(j));
            String sb2 = sb.toString();
            System.out.println(sb2);
            JSONObject jSONObject = new JSONObject(jP.V0(jP.V0(new JSONObject(fP.oq(sb2, V0())).getString(C0003.m9(f19short, 677, 4, 525)), this.j), this.q));
            JSONObject jSONObject2 = new JSONObject();
            jSONObject2.put(C0004.m12(f19short, 681, 3, 1351), jSONObject.getString(C0000.m1(f19short, 684, 7, 2795)));
            jSONObject2.put(C0001.m3(f19short, 691, 5, 1628), 0);
            return jSONObject2.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return null;
        }
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:21:0x00af. Please report as an issue. */
    /* JADX WARN: Failed to find 'out' block for switch in B:55:0x0179. Please report as an issue. */
    public String searchContent(String str, boolean z) {
        String m6 = C0002.m6(f19short, 696, 4, 3191);
        try {
            JSONArray jSONArray = new JSONArray();
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        h();
                        break;
                    case 239:
                        break;
                }
            }
            JSONArray jSONArray2 = new JSONObject(jP.V0(jP.V0(new JSONObject(fP.oq(this.h + C0013.m41(f19short, 730, 37, 1831) + URLEncoder.encode(jP.j(jP.j(C0003.m9(f19short, 700, 30, 2461) + str, this.q), this.j)), V0())).getString(C0005.m17(f19short, 767, 4, 3176)), this.j), this.q)).getJSONArray(m6);
            int i2 = 0;
            while (true) {
                int length = jSONArray2.length();
                int i3 = 1740;
                while (true) {
                    i3 ^= 1757;
                    switch (i3) {
                        case 17:
                            i3 = i2 < length ? 1833 : 1802;
                        case 54:
                        case 471:
                            break;
                        case 500:
                            JSONObject jSONObject = jSONArray2.getJSONObject(i2);
                            JSONObject jSONObject2 = new JSONObject();
                            jSONObject2.put(C0006.m18(f19short, 771, 6, 2852), jSONObject.getString(C0001.m3(f19short, 777, 2, 448)));
                            jSONObject2.put(C0008.m27(f19short, 779, 8, 2460), jSONObject.getString(C0004.m12(f19short, 787, 4, 2122)));
                            jSONObject2.put(C0003.m9(f19short, 791, 7, 2920), jSONObject.getJSONObject(C0009.m30(f19short, 798, 10, 644)).getString(C0011.m35(f19short, 808, 4, 898)));
                            String optString = jSONObject.optString(C0003.m9(f19short, 812, 6, 1307));
                            boolean equals = optString.equals(C0007.m26(f19short, 818, 4, 2243));
                            int i4 = 1864;
                            while (true) {
                                i4 ^= 1881;
                                switch (i4) {
                                    case 17:
                                        i4 = equals ? 48736 : 48705;
                                    case 47384:
                                        break;
                                    case 47417:
                                        optString = "";
                                        break;
                                    case 47483:
                                }
                            }
                            jSONObject2.put(C0014.m43(f19short, 822, 11, 3210), optString);
                            jSONArray.put(jSONObject2);
                            int i5 = i2 + 1;
                            int i6 = 48767;
                            while (true) {
                                i6 ^= 48784;
                                switch (i6) {
                                    case 14:
                                        break;
                                    case 239:
                                        i6 = 48798;
                                }
                            }
                            i2 = i5;
                            break;
                    }
                    JSONObject jSONObject3 = new JSONObject();
                    jSONObject3.put(m6, jSONArray);
                    return jSONObject3.toString();
                }
            }
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }
}
